package standard;

import gui.EntityRenderer;

import java.awt.Graphics2D;

import core.ViewableEntity;

public class SimpleEntityRenderer extends EntityRenderer {

	@Override
	protected void draw(ViewableEntity e, Graphics2D g) {
		if (e instanceof PlayerEntity) {
			PlayerEntity p = (PlayerEntity) e;
			g.setColor(p.color);
			g.fill3DRect((int) p.x, (int) p.y, p.width, p.height, true);
		}
	}

}
